package cn.wolfcode.luowowo.redis.RedisService;

import cn.wolfcode.luowowo.domain.UserInfo;

public interface IUserInfoRedisService {
    //发送验证码
    void sendVerifyCode(String phone,String code);

    String getVerifyCode(String phone);

    //将登录用户设置到redis中
    String setToken(UserInfo user);

    //通过token获取用户信息
    UserInfo getUserByToken(String token);
}
